<?php
// Set the content type to Javascript
header("Content-type: text/javascript");

// Disallow caching
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

// $pppweb = OC_Config::getValue('pipapai.com', 'http://yyjob.com');

$array = array(
   //"getsessionurl" => $pppweb.'/user/getsession',
   "loadmore_url" => OC_Helper::linkToRoute("interview_loadmore"),
   "info_sync_url" => OC_Helper::linkToRoute("interview_synctimer"),
   "validatenameurl" => OC_Helper::linkToRoute("jobseeker_validatename"),
   "jobseekerhomeurl" => OC_Helper::linkToRoute("jobseeker_home"),
   "showcaptchaurl" => OC_Helper::linkToRoute("company_showcaptcha"),
   "getvcodeurl"=>OC_Helper::linkToRoute("company_getvcode")
);

// Echo it
foreach ($array as  $setting => $value) {
   echo("var ". $setting ."=\"".$value."\";\n");
}
